let path = require("path");

const webpack = require("webpack")
module.exports = {
	lintOnSave:false,
	//代理
	configureWebpack: {
		plugins: [
			// 配置 jQuery 插件的参数
			new webpack.ProvidePlugin({
				$: 'jquery',
				jQuery: 'jquery',
				'window.jQuery': 'jquery',
				Popper: ['popper.js', 'default']
			})
		]
	},

	devServer: {
		
	  proxy: {
	    '/api': {
	      target: "http://localhost:3000",
	      changeOrigin: true,
	      pathRewrite: {
	        '^/api': '/api'
	      }
	    }
	  },
	},
	configureWebpack:(config)=>{	config.resolve={
		extensions:['.js','.json','.vue'],
		alias:{
	          '@':path.resolve(__dirname,'./src'),
	}
	}
	}
}